/**
 * @Project HGEMS
 * @Author Tran Manh Hung
 * @Email: hungtmit@gmail.com | tmh@xwebgate.com
 * @Copyright © 2010 TMH. All rights reserved
 * @Createdate Nov 22, 2010
 * @Createtime 5:33:06 PM
 */

package events
{
	import flash.events.Event;

	import valueObjects.HG_Unit;

	public class HGUnitEvent extends Event
	{
		public static const EDIT_UNIT:String = "editUnit";

		public static const UPDATE_UNIT:String = "updateUnit";

		public var unit:HG_Unit;

		public function HGUnitEvent(type:String, unit:HG_Unit = null, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);

			this.unit = unit;
		}

		override public function clone():Event
		{
			return new HGUnitEvent(type, unit, bubbles, cancelable);
		}
	}
}